package rs.dalao.syc.index.dao.persist.repository.impl;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import rs.dalao.syc.index.dao.persist.mapper.AidMapper;
import rs.dalao.syc.index.dao.persist.repository.IAidRepository;
import rs.dalao.syc.index.pojo.vo.AidDetailVO;
import rs.dalao.syc.index.pojo.vo.AidKeywordsVO;
import rs.dalao.syc.index.pojo.vo.AidMenuVO;
import rs.dalao.syc.index.pojo.vo.HotDetailVO;

import java.util.List;

@Slf4j
@Repository
public class AidRepositoryImpl implements IAidRepository {

    @Autowired
    private AidMapper aidMapper;

    /**获取一级目录信息*/
    @Override
    public List<AidMenuVO> getAidMenu() {
        return aidMapper.getAidMenu();
    }

    @Override
    public List<AidKeywordsVO> getKeywords(Integer type) {
        return aidMapper.getKeywords(type);
    }

    @Override
    public List<AidDetailVO> selectByIdForDetail(Long aidId) {
        return aidMapper.selectByIdForDetail(aidId);
    }

    @Override
    public List<HotDetailVO> selectAidHotDetail(){
        return aidMapper.selectAidHotDetail();
    }
}
